import request from '@/utils/request'

// 获取列表数据
export function getList(data = {}) {
  return request({
    url: '/api/sczx/user/schBaseInfo/list',
    method: 'POST',
    data,
  })
}
// 获取分页数据
export function getPageList(data?: any) {
  return request({
    url: '/api/sczx/user/schBaseInfo/page',
    method: 'POST',
    data,
  })
}

// 修改
export function doEdit(data: any) {
  return request({
    url: '/api/sczx/user/schBaseInfo/edit',
    method: 'POST',
    data,
  })
}

// 删除
export function doDelete(data: any) {
  return request({
    url: '/api/sczx/user/schBaseInfo/deleteById',
    method: 'POST',
    data,
  })
}
// 获取详情
export function getById(data: any) {
  return request({
    url: '/api/sczx/user/schBaseInfo/detailById',
    method: 'POST',
    data,
  })
}
// 获取详情
export function getBy(data: any) {
  return request({
    url: '/api/sczx/user/schBaseInfo/detailBy',
    method: 'POST',
    data,
  })
}
// 批量删除
export function doDeleteList(data: any) {
  return request({
    url: '/api/sczx/user/schBaseInfo/batchDeleteByIds',
    method: 'POST',
    data,
  })
}
// 添加
export function doAdd(data: any) {
  return request({
    url: '/api/sczx/user/schBaseInfo/create',
    method: 'POST',
    data,
  })
}
